var e = getApp(), a = require("../../../api.js"), t = require("../../../wxParse/wxParse.js");

Page({
    data: {
        activity: []
    },
    onLoad: function(a) {
        a.uid && e.shareCouponsMessage(a.uid), this.setData({
            id: a.id
        });
    },
    onReady: function() {},
    onShow: function() {
        var s = this;
        e.request({
            url: a.article.details,
            method: "post",
            data: {
                id: s.data.id
            },
            success: function(e) {
                t.wxParse("article", "html", e.data.content, s, 5), s.setData({
                    activity: e.data
                }), console.log("公告详情", e);
            }
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        var a = e.shareAppMessage().title, t = e.shareAppMessage().imageUrl, s = e.shareAppMessage().desc, n = e.shareAppMessage().path;
        return console.log(e.shareAppMessage()), {
            title: a,
            imageUrl: t,
            desc: s,
            path: n
        };
    }
});